FROM tqwboy/jre:8
MAINTAINER Norla AuthCenter Container Images

ENV ENV LANG C.UTF-8

RUN mkdir /app \
    && cd /app \
    && mkdir logs
ADD spring-platform-1.0.0.jar /app/spring-platform.jar

RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo 'Asia/Shanghai' > /etc/timezone

WORKDIR /app
EXPOSE 8080

CMD [ "sh", "-c", "java -Djava.security.egd=file:/dev/./urandom -jar /app/spring-platform.jar" ]